import json
import os

if __name__ == '__main__':
    with open('index_cmd.json', 'r') as f:
        index_cmd_l = json.load(f)
    print(index_cmd_l)
    for dataset_name in index_cmd_l:
        command = index_cmd_l[dataset_name]
        # if dataset_name == 'text-to-image':
        os.system("cd ../data/%s && %s" % (dataset_name, command))
